/*
 * @Author: Starfish_DL
 * @Date: 2020-09-30 19:53:01
 * @LastEditors: Starfish_DL
 * @LastEditTime: 2020-09-30 20:19:54
 * @CurrentVersion: 1.0
 * @Description: 
 */

//tag 作业第六题
public class TriAngle {
    private int base;
    private int height;

    public void setBase(int a) {
        if (a<=0) {
            System.out.println("Parameter is wrong!");
        }
        else {
            this.base=a;
            System.out.println("Parameter base has set successfully!");
        }
        return;
    } 

    public void setHeight(int a) {
        if (a<=0) {
            System.out.println("Parameter is wrong!");
        }
        else {
            this.height=a;
            System.out.println("Parameter height has set successfully!");
        }
        return;
    }
    
    public int getBase() {
        return this.base;
    }
    
    public int getHeight() {
        return this.height;
    }
}
